import Vue from 'vue';
import md5 from 'js-md5';
import Antd from 'ant-design-vue';
import 'plyr/dist/plyr.css';
import 'ant-design-vue/dist/antd.css';
import '../node_modules/normalize.css';
import './styles/index.css';
import App from './App';
import router from './router/index';
import api from './api/index';
import eventBus from './utils/eventBus/index';
import './icons/index';
import i18n from './lang/index';
import requireLogin from './utils/checkIsLogined';
import player from './components/Play/index';


Vue.use(eventBus);
Vue.use(player);
Vue.use(api);
Vue.use(Antd);
Vue.use(requireLogin);

Vue.prototype.$md5 = md5;
// Vue.prototype.$message = message;
// 引入各个语言配置文件
// import en from './lang/lang/en';
// import zh from './lang/lang/zh-CN';

// const i18n = new VueI18n({
//   locale: 'en',
//   messages: {
//     cn: {
//       name: '名字',
//     },
//     en: {
//       name: 'Name',
//     },
//   },
// });
// // console.log(store.get('locale'));
// console.log($t('name'));
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  i18n,
  components: { App },
  template: '<App/>',
});
